package com.uls.ycl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uls.ycl.mapper.InspectionMaintenanceMapper;
import com.uls.ycl.domain.InspectionMaintenance;
import com.uls.ycl.service.IInspectionMaintenanceService;

/**
 * 检修维护Service业务层处理
 * 
 * @author ycl
 * @date 2024-11-23
 */
@Service
public class InspectionMaintenanceServiceImpl implements IInspectionMaintenanceService 
{
    @Autowired
    private InspectionMaintenanceMapper inspectionMaintenanceMapper;

    /**
     * 查询检修维护
     * 
     * @param id 检修维护主键
     * @return 检修维护
     */
    @Override
    public InspectionMaintenance selectInspectionMaintenanceById(Long id)
    {
        return inspectionMaintenanceMapper.selectInspectionMaintenanceById(id);
    }

    /**
     * 查询检修维护列表
     * 
     * @param inspectionMaintenance 检修维护
     * @return 检修维护
     */
    @Override
    public List<InspectionMaintenance> selectInspectionMaintenanceList(InspectionMaintenance inspectionMaintenance)
    {
        return inspectionMaintenanceMapper.selectInspectionMaintenanceList(inspectionMaintenance);
    }

    /**
     * 新增检修维护
     * 
     * @param inspectionMaintenance 检修维护
     * @return 结果
     */
    @Override
    public int insertInspectionMaintenance(InspectionMaintenance inspectionMaintenance)
    {
        return inspectionMaintenanceMapper.insertInspectionMaintenance(inspectionMaintenance);
    }

    /**
     * 修改检修维护
     * 
     * @param inspectionMaintenance 检修维护
     * @return 结果
     */
    @Override
    public int updateInspectionMaintenance(InspectionMaintenance inspectionMaintenance)
    {
        return inspectionMaintenanceMapper.updateInspectionMaintenance(inspectionMaintenance);
    }

    /**
     * 批量删除检修维护
     * 
     * @param ids 需要删除的检修维护主键
     * @return 结果
     */
    @Override
    public int deleteInspectionMaintenanceByIds(Long[] ids)
    {
        return inspectionMaintenanceMapper.deleteInspectionMaintenanceByIds(ids);
    }

    /**
     * 删除检修维护信息
     * 
     * @param id 检修维护主键
     * @return 结果
     */
    @Override
    public int deleteInspectionMaintenanceById(Long id)
    {
        return inspectionMaintenanceMapper.deleteInspectionMaintenanceById(id);
    }
}
